<template>
	<view class="content-whole">
		<!-- 商品列表 -->
		<view class="product-module">
			<!-- 上侧图标 -->
			<view class="operation-list">
				<view class="">
					<u-checkbox-group v-model="checkboxValue" placement="column" shape="circle" @change="checkboxChange"
						activeColor="#FA444D" labelColor="#000000" labelSize="20" size="24">
						<u-checkbox name="选择" label="选择">
						</u-checkbox>
					</u-checkbox-group>
				</view>
				<view class="operation-icon">
					<image src="../../static/deleteIcon.png" mode="" class="image"></image>
				</view>
			</view>
			<!-- 商品内容 -->
			<view class="product-content">
				<!-- 左侧图片内容 -->
				<view class="product-image">
					<image src="../../static/logo.png" class="image" mode=""></image>
				</view>
				<!-- 右侧商品描述 -->
				<view class="shopping-introduction">
					<view class="product-introduction">Product I12323123123123123123ntroduction</view>
					<view class="product-specifications">白色,中号</view>
					<view class="price">
						<view class="current-price">
							<text class="current-symbol">￥</text>
							<text class="current-number">0.1</text>
						</view>
						<view class="shopping-number">
							<u-number-box v-model="shoppingNumber" color="#000000" bgColor="#F2F3F5"
								iconStyle="color: #000" @change="valChange"></u-number-box>
						</view>
					</view>
				</view>
			</view>


		</view>
		<!-- 为您推荐 -->
		<view class="recommended">
			<view class="horizontal-line"></view>
			<text class="recommended-text">为您推荐</text>
			<view class="horizontal-line"></view>
		</view>

		<!-- 商品列表-->
		<view class="shopping-list">
			<view class="list-module">
				<!-- 图片 -->
				<view class="list-iamge">
					<image src="../../static/logo.png" class="image" mode=""></image>
				</view>
				<!-- 文字介绍 -->
				<view class="list-text">
					化工斯蒂回归收到贵司的工会的谁打碎大概会是的后果iOS的规划
				</view>
				<view class="price">
					<!-- 原价 -->
					<view class="current-price">
						<text class="current-symbol">￥</text>
						<text class="current-number">0.1</text>
					</view>
					<!-- 现价 -->
					<view class="original-price">
						<text class="original-symbol">￥</text>
						<text class="original-number">0.1</text>
					</view>
				</view>
			</view>
			<view class="list-module">
				<!-- 图片 -->
				<view class="list-iamge">
					<image src="../../static/logo.png" class="image" mode=""></image>
				</view>
				<!-- 文字介绍 -->
				<view class="list-text">
					化工斯蒂回归收到贵司的工会的谁打碎大概会是的后果iOS的规划
				</view>
				<view class="price">
					<!-- 原价 -->
					<view class="current-price">
						<text class="current-symbol">￥</text>
						<text class="current-number">0.1</text>
					</view>
					<!-- 现价 -->
					<view class="original-price">
						<text class="original-symbol">￥</text>
						<text class="original-number">0.1</text>
					</view>
				</view>
			</view>

			<view class="list-module">
				<!-- 图片 -->
				<view class="list-iamge">
					<image src="../../static/logo.png" class="image" mode=""></image>
				</view>
				<!-- 文字介绍 -->
				<view class="list-text">
					化工斯蒂回归收到贵司的工会的谁打碎大概会是的后果iOS的规划
				</view>
				<view class="price">
					<!-- 原价 -->
					<view class="current-price">
						<text class="current-symbol">￥</text>
						<text class="current-number">0.1</text>
					</view>
					<!-- 现价 -->
					<view class="original-price">
						<text class="original-symbol">￥</text>
						<text class="original-number">0.1</text>
					</view>
				</view>
			</view>

		</view>
		<!-- 底部按钮 -->
		<view class="footer">
			<!-- 全选按钮 -->
			<view class="">
				<u-checkbox-group v-model="selectall" placement="column" shape="circle" @change="checkboxChange"
					activeColor="#FA444D" labelColor="#000000" labelSize="20" size="24">
					<u-checkbox name="全选" label="全选">
					</u-checkbox>
				</u-checkbox-group>
			</view>
			<!-- 结算 -->
			<view class="settlement-module">
				<view>合计：</view>


				<view class="current-price">
					<text class="current-symbol">￥</text>
					<text class="current-number">0.1</text>
				</view>

				<view class="settlement-button">去结算</view>
				
			</view>

		</view>


	</view>

</template>

<script>
	export default {
		data() {
			return {
				// 单选
				checkboxValue: '',
				// 全选
				selectall: '',
				// 商品数量
				shoppingNumber: null
			}
		},
		methods: {
			checkboxChange(e) {
				console.log(e, 'eeeeeee');

			}
		}
	}
</script>

<style scoped lang="less">
	.content-whole {
		background-color: #F6F6F6;
		height: 100vh;
		width: 100%;
		padding: 20rpx;
		box-sizing: border-box;

		.product-module {
			padding: 20rpx;
			background-color: #FFFFFF;
			border-radius: 8rpx;
			margin-bottom: 20rpx;
			border-radius: 5rpx;

			.operation-list {
				display: flex;
				justify-content: space-between;

				.operation-icon {
					width: 40rpx;
					height: 40rpx;
					border-radius: 100%;
					padding: 10rpx;
					background-color: #F2F3F5;

				}
			}

			.product-content {
				background-color: #ffffff;
				width: 100%;
				margin-top: 35rpx;
				display: flex;
				justify-content: space-between;

				.product-image {
					width: 260rpx;
					height: 240rpx;
					margin-right: 20rpx;

				}

				.shopping-introduction {
					width: 385rpx;

					.product-introduction {
						overflow: hidden;
						/* 隐藏溢出的内容 */
						text-overflow: ellipsis;
						/* 使用省略号表示溢出的文本 */
						display: -webkit-box;
						/* 仅适用于Webkit浏览器 */
						-webkit-line-clamp: 2;
						/* 限制在3行内显示 */
						-webkit-box-orient: vertical;
						/* 仅适用于Webkit浏览器 */
						word-wrap: break-word;
						/* 允许单词在边界处断行 */
						line-clamp: 2;
						/* 标准属性，但目前只有Webkit浏览器支持 */

					}

					.product-specifications {
						color: #666666;
					}

					.price {
						display: flex;
						margin-top: 40rpx;

						.current-price {
							margin-right: 20rpx;

							.current-symbol {
								font-size: 30rpx;
								color: #FA444D;
							}

							.current-number {
								font-size: 35rpx;
								color: #FA444D;
							}
						}

						.shopping-number {
							margin-left: 20rpx;
						}
					}

				}
			}

		}

		.recommended {
			// text-align: center;
			margin: 40rpx 0rpx;
			font-weight: bold;
			font-size: 40rpx;
			display: flex;
			justify-content: center;
			align-items: center;

			.recommended-text {
				margin: 0 20px;
			}

			.horizontal-line {
				width: 150rpx;
				height: 1px;
				background-color: #eaeaea;
			}
		}

		.shopping-list {
			display: flex;
			flex-wrap: wrap;
			/* 允许子元素换行 */
			// justify-content: space-around;
			/* 子元素在容器中水平分布 */
			justify-content: space-between;

			.list-module {
				box-sizing: content-box;
				width: 47%;
				background-color: #FFFFFF;


				.list-iamge {
					height: 340rpx;
				}

				.list-text {
					margin-top: 10rpx;
					overflow: hidden;
					font-size: 30rpx;
					/* 隐藏溢出的内容 */
					text-overflow: ellipsis;
					/* 使用省略号表示溢出的文本 */
					display: -webkit-box;
					/* 仅适用于Webkit浏览器 */
					-webkit-line-clamp: 2;
					/* 限制在3行内显示 */
					-webkit-box-orient: vertical;
					/* 仅适用于Webkit浏览器 */
					word-wrap: break-word;
					/* 允许单词在边界处断行 */
					line-clamp: 2;
					/* 标准属性，但目前只有Webkit浏览器支持 */
				}

				.price {
					margin-top: 5rpx;
					display: flex;
					justify-content: flex-start;
					align-items: center;

					.current-price {
						margin-right: 20rpx;

						.current-symbol {
							font-size: 30rpx;
							color: red;
						}

						.current-number {
							font-size: 35rpx;
							color: red;
						}
					}

					.original-price {
						margin-top: 14rpx;
						color: #999999;
						text-decoration: line-through;

						.original-symbol {
							font-size: 30rpx;
						}

						.original-number {
							font-size: 25rpx;
						}
					}
				}

			}

		}

		.footer {
			width: 100%;
			height: 100rpx;
			background-color: #FFFFFF;
			position: fixed;
			left: 0rpx;
			bottom: 0rpx;
			z-index: 10;
			display: flex;
			justify-content: space-between;
			padding: 30rpx 20rpx;
			align-items: center;
			box-sizing: border-box;

			.settlement-module {
				display: flex;
				justify-content: space-around;
				align-items: center;

				.current-price {
					margin-right: 20rpx;

					.current-symbol {
						font-size: 30rpx;
						color: #FA444D;
					}

					.current-number {
						font-size: 35rpx;
						color: #FA444D;
					}
				}
			}
			.settlement-button{
				text-align: center;
				padding: 15rpx 60rpx;
				border-radius: 79rpx;
				background-color:#FA444D;
				color: #ffffff;
				font-size: 32rpx;
				
			}
		}

		.image {
			width: 100%;
			height: 100%;
		}
	}
</style>